<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
</block>

<block name="main">
<div class="pd-20">
	<form action="{:u('edit_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>标题：</label>
			<div class="formControls col-5">
	  			<input type="text" class="input-text"  value="{$info.title}" placeholder="" name="title"  data-rule="标题:required;">
			</div>
	  	</div>
		<div class="row cl">
			<label class="form-label col-2">简介：</label>
			<div class="formControls col-5">
	  			<textarea name="remark" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" onKeyUp="textarealength(this,100)">{$info.remark}</textarea>
			</div>
	  	</div>
	  	<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>学年：</label>
				<div class="formControls col-5">
				  	<div class="skin-minimal">
				  		<php>$studyyear_arr = explode(',',$info['studyyear']);</php>
				  		<volist name="xuenian" id="vo">
				  		<php>
				  			$val = 'X'.$vo['id'].'N';
				  			in_array($val,$studyyear_arr) ? $b =true:$b=false;
				  		</php>
					  	<div class="check-box">
					    	<input type="checkbox" id="checkbox-{$vo.id}" name="studyyear[]" value="{$val}" <if condition="$b">checked</if>>
					    	<label for="checkbox-{$vo.id}">{$vo.title}({$vo.start_time}到{$vo.end_time})</label>
					    </div>
					    </volist>
					</div>
					<a class="btn btn-primary radius mt-10" onclick="parent.Hui_admin_tab(this)" _href="{:U('termtime/index')}" data-title="学年列表">添加学年</a>
				</div>
			<div class="col-5"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>老生优先截止时间：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text mini-time" style="width:120px;" value="{$info.pay_for_old_time}" placeholder="" name="pay_for_old_time"  data-rule="老生优先截止时间:required;">
				</div>
			<div class="col-5"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>报名截止时间：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text mini-time" style="width:120px;" value="{$info.pay_end_time}" placeholder="" name="pay_end_time"  data-rule="报名截止时间:required;">
				</div>
			<div class="col-5"> </div>
		</div>
	  	<!-- <div class="line mt-20"></div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>报名开始时间：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text mini-time" style="width:120px;" value="{$info.pay_start_time}" placeholder="" name="pay_start_time"  data-rule="支付开始时间:required;">
				</div>
			<div class="col-5"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>报名截止时间：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text mini-time" style="width:120px;" value="{$info.pay_end_time}" placeholder="" name="pay_end_time"  data-rule="支付结束时间:required;">
				</div>
			<div class="col-5"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>老生优先截止时间：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text mini-time" style="width:120px;" value="{$info.pay_for_old_time}" placeholder="" name="pay_for_old_time"  data-rule="开始时间:required;">
				</div>
			<div class="col-5"> </div>
		</div>
		 
	  	<div class="row cl">
			<label class="form-label col-2">备注：</label>
			<div class="formControls col-5">
	  			<textarea name="desc" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" onKeyUp="textarealength(this,100)">{$info.desc}</textarea>
			</div>
			<div class="col-5"> </div>
	  	</div>
	  	-->
	  	<div class="row cl">
	    	<div class="col-9 col-offset-2">
	    		<input type="hidden" name="id" value="{$info['id']}">
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$('.mini-time').datepicker({autohide: true});

});
</script>
</block>